﻿<UserControl x:Name="_this" x:Class="z.v.Customer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="800" Loaded="_this_Loaded">
    <Grid>
		<DataGrid x:Name="tbl" LostFocus="tbl_LostFocus" SelectionMode="Single" AutoGenerateColumns="False">
			<DataGrid.Columns>
				<DataGridTextColumn Binding="{Binding ID}" Header="ID" IsReadOnly="True" Width="Auto"/>
				<DataGridTextColumn Binding="{Binding Name}" Header="Tên(In)" Width="*"/>
				<DataGridTextColumn Binding="{Binding Nick}" Header="Tên(Máy)" Width="*"/>
				<DataGridTextColumn Binding="{Binding Phone}" Header="SĐT" Width="*"/>
				<DataGridTextColumn Binding="{Binding MST}" Header="MST" Width="*"/>
				<DataGridTextColumn Binding="{Binding Address}" Header="Địa chỉ" Width="*"/>
				<DataGridTextColumn Binding="{Binding Fax}" Header="Fax" Width="*"/>
				<DataGridTextColumn Binding="{Binding Email}" Header="Email" Width="*"/>
			</DataGrid.Columns>
		</DataGrid>
	</Grid>
</UserControl>
